<?php if($adc->getCurrentAdTypeId() > 0): ?>
<div class="control-group">
    <label class="control-label" for="q"><?php
	switch($adc->CurrentAdType->AdTypeObject)
	{
		case 'AdVehicle':
			if($adc->getCurrentAdTypeId() == 2) 
			{ echo ucfirst($txt->getWord('mileage')); } 
			else 
			{ echo ucfirst($txt->getWord('hours')); }
		break;
		case 'AdTransport':
			echo ucfirst($txt->getWord('max').' '.$txt->getWord('distance')); 
		break;
		case 'AdVehicleLight':
			echo ucfirst($txt->getWord('mileage'));
		break;
		default:
			echo ucfirst($txt->getWord('hours'));
		break;
	}
	?></label>
    <?php if($theme->getBootstrap() > 2): ?>
        <div class="controls row">
            <div class="col-md-4 col-sm-4 col-xs-4">
                <input placeholder="1000" class="input-mini numeric form-control" type="number" name="umin" value="<?php if(intval($_REQUEST['umin']) > 0) { echo intval($_REQUEST['umin']); } ?>" />
            </div>
            <div class="col-md-1 col-sm-1 col-xs-1">
                <p class="form-control-static">-</p>
            </div>
            <div class="col-md-4 col-sm-4 col-xs-4">
                <input placeholder="100 000" class="input-mini numeric form-control" type="number" name="umax" value="<?php if(intval($_REQUEST['umax']) > 0) { echo intval($_REQUEST['umax']); } ?>" />
            </div>
            <div class="col-md-3 col-sm-3 col-xs-3">
            	<button type="submit" class="btn <?php echo $adc->getSetting('SearchBtnClass'); ?>" name="search"><?php echo ucfirst($txt->getWord('search')); ?></button>
            </div>
        </div>
    <?php else: ?>
        <div class="controls">
                <input placeholder="1000" class="input-mini numeric" type="text" name="umin" onclick="this.value='';" value="<?php if(intval($_REQUEST['umin']) > 0) { echo intval($_REQUEST['umin']); } ?>" />
                <span>&nbsp;-&nbsp;</span>
                <input placeholder="1000" class="input-mini numeric" type="text" name="umax" onclick="this.value='';" value="<?php if(intval($_REQUEST['umax']) > 0) { echo intval($_REQUEST['umax']); } ?>" />
                <button type="submit" class="btn <?php echo $adc->getSetting('SearchBtnClass'); ?>" name="search"><?php echo ucfirst($txt->getWord('search')); ?></button>
        </div>
    <?php endif; ?>
</div>
<?php endif; ?>